<?php 


$pre1 = $_POST['Pre1'];
$pre2 = $_POST['Pre2'];
$pre3 = $_POST['Pre3'];
$pre4 = $_POST['Pre4'];
$pre5 = $_POST['Pre5'];
$pre6 = $_POST['Pre6'];


$pre7 = $_POST['Pre7'];
$pre8 = $_POST['Pre8'];
$pre9 = $_POST['Pre9'];
$pre10 = $_POST['Pre10'];
$pre11 = $_POST['Pre11'];
$pre12 = $_POST['Pre12'];
$pre13 = $_POST['Pre13'];
$pre14 = $_POST['Pre14'];

$pre15 = $_POST['Pre15'];
$pre16 = $_POST['Pre16'];
$pre17 = $_POST['Pre17'];
$pre18 = $_POST['Pre18'];
$pre19 = $_POST['Pre19'];
$pre20 = $_POST['Pre20'];
$pre21 = $_POST['Pre21'];
$pre22 = $_POST['Pre22'];
$pre23 = $_POST['Pre23'];

$pre24 = $_POST['Pre24'];
$pre25 = $_POST['Pre25'];
$pre26 = $_POST['Pre26'];
$pre27 = $_POST['Pre27'];
$pre28 = $_POST['Pre28'];


$pre29 = $_POST['Pre29'];
$pre30 = $_POST['Pre30'];
$pre31 = $_POST['Pre31'];


$pre32 = $_POST['Pre32'];
$pre33 = $_POST['Pre33'];
$pre34 = $_POST['Pre34'];
$pre35 = $_POST['Pre35'];
$pre36 = $_POST['Pre36'];
$pre37 = $_POST['Pre37'];
$pre38 = $_POST['Pre38'];
$pre39 = $_POST['Pre39'];

$pre40 = $_POST['Pre40'];
$sugerencia = $_POST['sugerencia'];
$codigo="12345";
$plan="2345";
$fecha_actual = date("Y-m-d");

$host="localhost";
$db="bienestar";
$pass="root";
$user="web";
$con=  mysql_connect($host,$user,$pass)or die("No se pudo autenticar con la BD");
mysql_select_db($db,$con) or die("no se pudo conectar a la BD");

mysql_query("INSERT INTO resultados(id,codEst,Plan,Pre1,Pre2,Pre3,Pre4,Pre5,Pre6,Pre7,Pre8,Pre9,Pre10,Pre11,Pre12,Pre13,Pre14,Pre15,Pre16,Pre17,Pre18,Pre19,Pre20,Pre21,Pre22,Pre23,Pre24,Pre25,Pre26,Pre27,Pre28,Pre29,Pre30,Pre31,Pre32,Pre33,Pre34,Pre35,Pre36,Pre37,Pre38,Pre39,Pre40,Observacion,Fecha) values(0,'$codigo','$plan','$pre1','$pre2','$pre3','$pre4','$pre5','$pre6','$pre7','$pre8','$pre9','$pre10','$pre11','$pre12','$pre13','$pre14','$pre15','$pre16','$pre17','$pre18','$pre19','$pre20','$pre21','$pre22','$pre23','$pre24','$pre25','$pre26','$pre27','$pre28','$pre29','$pre30','$pre31','$pre32','$pre33','$pre34','$pre35','$pre36','$pre37','$pre38','$pre39','$pre40','$sugerencia','$fecha_actual')");
echo "almacenados";


?> 
  